//
//  AIWalletTitleView.m
//  Mia
//
//  Created by Vill on 2024/1/13.
//

#import "AIWalletTitleView.h"


@implementation AIWalletTitleView

- (instancetype)initWithFrame:(CGRect)frame{
    if(self == [super initWithFrame:frame]){
        [self setupUI];
    }
    return self;
}

-(void)setupUI{
    [self addSubview:self.titleLbl];
    [self.titleLbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self).mas_offset(PTW(20));
        make.centerY.mas_equalTo(self);
    }];
}

- (UILabel *)titleLbl{
    if(!_titleLbl){
        _titleLbl = [UILabel new];
        _titleLbl.font = [UIFont fontWithWeight:MTBold size:PTW(45)];
        _titleLbl.textColor = UIColor.whiteColor;
    }
    return _titleLbl;
}

@end
